Optimal. Leaf size=21 \[ \log (6) \log (x)-\frac {\text {Li}_2\left (-\frac {e x^n}{3}\right )}{n} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 21, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.214, Rules used = {2504, 2439,
2438} \begin {gather*} \log (6) \log (x)-\frac {\text {PolyLog}\left (2,-\frac {e x^n}{3}\right )}{n} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2438
Rule 2439
Rule 2504
Rubi steps
\begin {align*} \int \frac {\log \left (2 \left (3+e x^n\right )\right )}{x} \, dx &=\frac {\text {Subst}\left (\int \frac {\log (2 (3+e x))}{x} \, dx,x,x^n\right )}{n}\\ &=\log (6) \log (x)+\frac {\text {Subst}\left (\int \frac {\log \left (1+\frac {e x}{3}\right )}{x} \, dx,x,x^n\right )}{n}\\ &=\log (6) \log (x)-\frac {\text {Li}_2\left (-\frac {e x^n}{3}\right )}{n}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.00, size = 21, normalized size = 1.00 \begin {gather*} \log (6) \log (x)-\frac {\text {Li}_2\left (-\frac {e x^n}{3}\right )}{n} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(45\) vs.
\(2(19)=38\).
time = 1.18, size = 46, normalized size = 2.19
method | result | size |
risch | \(\ln \left (x \right ) \ln \left (6+2 e \,x^{n}\right )-\frac {\dilog \left (\frac {e \,x^{n}}{3}+1\right )}{n}-\ln \left (x \right ) \ln \left (\frac {e \,x^{n}}{3}+1\right )\) | \(41\) |
derivativedivides | \(\frac {\left (\ln \left (6+2 e \,x^{n}\right )-\ln \left (\frac {e \,x^{n}}{3}+1\right )\right ) \ln \left (-\frac {e \,x^{n}}{3}\right )-\dilog \left (\frac {e \,x^{n}}{3}+1\right )}{n}\) | \(46\) |
default | \(\frac {\left (\ln \left (6+2 e \,x^{n}\right )-\ln \left (\frac {e \,x^{n}}{3}+1\right )\right ) \ln \left (-\frac {e \,x^{n}}{3}\right )-\dilog \left (\frac {e \,x^{n}}{3}+1\right )}{n}\) | \(46\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 44 vs.
\(2 (19) = 38\).
time = 0.37, size = 44, normalized size = 2.10 \begin {gather*} \frac {n \log \left (2 \, x^{n} e + 6\right ) \log \left (x\right ) - n \log \left (\frac {1}{3} \, x^{n} e + 1\right ) \log \left (x\right ) - {\rm Li}_2\left (-\frac {1}{3} \, x^{n} e\right )}{n} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [C] Result contains complex when optimal does not.
time = 1.63, size = 100, normalized size = 4.76 \begin {gather*} \begin {cases} - \frac {\operatorname {Li}_{2}\left (\frac {e x^{n} e^{i \pi }}{3}\right )}{n} & \text {for}\: \frac {1}{\left |{x}\right |} < 1 \wedge \left |{x}\right | < 1 \\\log {\left (6 \right )} \log {\left (x \right )} - \frac {\operatorname {Li}_{2}\left (\frac {e x^{n} e^{i \pi }}{3}\right )}{n} & \text {for}\: \left |{x}\right | < 1 \\- \log {\left (6 \right )} \log {\left (\frac {1}{x} \right )} - \frac {\operatorname {Li}_{2}\left (\frac {e x^{n} e^{i \pi }}{3}\right )}{n} & \text {for}\: \frac {1}{\left |{x}\right |} < 1 \\- {G_{2, 2}^{2, 0}\left (\begin {matrix} & 1, 1 \\0, 0 & \end {matrix} \middle | {x} \right )} \log {\left (6 \right )} + {G_{2, 2}^{0, 2}\left (\begin {matrix} 1, 1 & \\ & 0, 0 \end {matrix} \middle | {x} \right )} \log {\left (6 \right )} - \frac {\operatorname {Li}_{2}\left (\frac {e x^{n} e^{i \pi }}{3}\right )}{n} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.05 \begin {gather*} \int \frac {\ln \left (2\,e\,x^n+6\right )}{x} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________